package com.asion.qkan.ui.presenter;

import com.asion.qkan.entry.AllContentBean;
import com.asion.qkan.ui.contract.AllContentContract;

/**
 * Created by HCJ on 2016/10/16.
 */

public class AllContentPresenter extends AllContentContract.Presenter{
    @Override
    public void onStart() {
        super.onStart();
    }

    @Override
    public void setAllContentDatas(String id) {
       mModel.getAllContentDatas(id, new AllContentContract.OnAllContentListener() {
           @Override
           public void onAllContentSuccess(AllContentBean allContentBean) {
               mView.showDataSuccess(allContentBean);
           }

           @Override
           public void onAllContentError(Throwable t) {
                mView.showDataError(t);
           }
       });
    }
}
